import request from '@/utils/request'

/**
 * http://192.168.20.109:3000/project/39/interface/api/1456
 * 图片上传
 * @param {*} data 
 * @returns 
 */
const fileUpload = (data) => {
  return request({
    url: '/file/upload',
    method: "post",
    data: data
  })
}

/**
 * http://192.168.20.109:3000/project/39/interface/api/1463
 * 图片下载
 * @param {*} data 
 * @returns 
 */
const fileDownload = (data) => {
  return request({
    url: '/file/download',
    method: "post",
    data: data
  })
}

export default {
  fileUpload,
  fileDownload
}